package org.xsk.mall.pms.domain.convert;

import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;
import org.xsk.mall.pms.dao.entity.PmsProductCategoryDO;
import org.xsk.mall.pms.domain.model.PmsProductCategoryModel;

import java.util.List;

/**
 * description: 商品分类 domain convert
 * <p>
 * date: 2021/8/19 14:25
 * author: x-one
 */
@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface PmsProductCategoryDOConvert {
    PmsProductCategoryDOConvert INSTANCE = Mappers.getMapper(PmsProductCategoryDOConvert.class);

    List<PmsProductCategoryModel> doListToModelList(List<PmsProductCategoryDO> doList);
}
